﻿<%@ Page Language="C#" MasterPageFile="../MasterPages/Normal.Master" AutoEventWireup="true"
    CodeBehind="Detail.aspx.cs" Inherits="zdzh.zdmgr.UIL.fangyuanp.Detail" %>

<asp:Content ID="ContentArea" ContentPlaceHolderID="MainContent" runat="server">
        <style type="text/css">
            .InfoContent li
            {
                min-height: 30px;
                line-height: 20px;
                float: left;
                margin:5px 0 5px 0;
            }
        </style>
        <div id="ScorllArea">
            <div class="InfoArea" style="min-width: 800px;">
                <div class="InfoHeader"><b><%=fangyuan.getBuild() %></b> 房屋详情</div>
                    <div class="InfoContent">
                        <div style="height: 20px;">
                            <img src="../Images/ModuleTitle/TitleLine.png" alt="TitleLine"/><asp:Label 
                                ID="LblCostTime" runat="server"></asp:Label>
                        </div>
                        <ul>
                        </ul>
                    </div>
		            <table class="TableData">
			            <colgroup>
				            <col width="100" />
				            <col width="100" />
				            <col width="100" />
				            <col width="100" />
				            <col width="100" />
				            <col width="100" />
				            <col width="120px" />
			            </colgroup>
			            <tr class="TableHeader">
				            <td>索引</td>
                            <td>类型</td>
				            <td>楼号</td>
				            <td>面积(设计/测绘)</td>
				            <td>状态</td>
				            <td>单价（元/㎡）</td>
			            </tr>
			            <tr class="TableRow">
				            <td><%=fangyuan.Index %></td>
				            <td><%=fangyuan.getType() %></td>
				            <td><%=fangyuan.getBuild() %></td>
				            <td><%=fangyuan.getArea() %></td>
				            <td><%=fangyuan.getState() %></td>
				            <td><%=fangyuan.getPrice() %></td>
                        </tr>
		            </table>
                    <ul>
                	    <li style="width: 20px; text-indent:5px; height: 20px;"></li>
                    </ul>
		            <asp:Table ID="TblDingdan" runat="server" CssClass="TableData" Visible="False">
                        <asp:TableRow runat="server" CssClass="TableHeader">
                            <asp:TableCell runat="server" ColumnSpan="11">认购单</asp:TableCell>
                            <asp:TableCell runat="Server" ColumnSpan="2">
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow runat="server" CssClass="TableRow">
                            <asp:TableCell runat="Server">索引</asp:TableCell>
                            <asp:TableCell runat="server">认购日期</asp:TableCell>
                            <asp:TableCell runat="server">编号</asp:TableCell>
                            <asp:TableCell runat="server">购房人
                            <input class="Button" type="button" value="添加" onclick="location='../huiqianhup/Create.aspx?Xieyihao=<%=dingdan.Index %>'"/>
                            </asp:TableCell>
                            <asp:TableCell runat="server">电话
                            <input class="Button" type="button" value="添加" onclick="location='../huiqiandianhuap/Create.aspx?Xieyihao=<%=dingdan.Index %>'"/>
                            </asp:TableCell>
                            <asp:TableCell runat="server">总价</asp:TableCell>
                            <asp:TableCell runat="server">付款方式</asp:TableCell>
                            <asp:TableCell runat="server">定金</asp:TableCell>
                            <asp:TableCell runat="server">首付</asp:TableCell>
                            <asp:TableCell runat="server">贷款</asp:TableCell>
                            <asp:TableCell runat="server">补款日期</asp:TableCell>
                            <asp:TableCell runat="server">销售员</asp:TableCell>
                            <asp:TableCell runat="server">备注</asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow runat="server" CssClass="TableRow">
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
                    
		            <asp:Table ID="TblXieyi" runat="server" CssClass="TableData" Visible="False">
                        <asp:TableRow runat="server" CssClass="TableHeader">
                            <asp:TableCell runat="server" ColumnSpan="2">拆迁协议</asp:TableCell>
                            <asp:TableCell runat="Server" ColumnSpan="1">
					        <input class="BtnDetail" type="button" onclick="location='../huiqianxieyip/Detail.aspx?Index=<%=huiqianxieyi.Index%>'"/>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow runat="server" CssClass="TableRow">
                            <asp:TableCell runat="server">协议号</asp:TableCell>
                            <asp:TableCell runat="server">产权人</asp:TableCell>
                            <asp:TableCell runat="server">电话</asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow runat="server" CssClass="TableRow">
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                            <asp:TableCell runat="server"></asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
                    <ul>
                	    <li style="width: 20px; text-indent:5px; height: 20px;"></li>
                    </ul>
                    <asp:Table ID="TblShoukuan" runat="server" CssClass="TableData">
                        <asp:TableRow runat="server" CssClass="TableHeader">
                            <asp:TableCell runat="server" ColumnSpan="2">销售收款</asp:TableCell>
                            <asp:TableCell runat="Server">
                            <input class="Button" type="button" value="收款" onclick="location='../xiaoshoup/Create.aspx?Index=<%=fangyuan.Index %>'"/>
                            </asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
                    <ul>
                	    <li style="width: 20px; text-indent:5px; height: 20px;"></li>
                    </ul>
                    <asp:Table ID="TblShoufei" runat="server" CssClass="TableData">
                        <asp:TableRow runat="server" CssClass="TableHeader">
                            <asp:TableCell runat="server" ColumnSpan="2">物业收费</asp:TableCell>
                            <asp:TableCell runat="Server">
                            <input class="Button" type="button" value="收款" onclick="location='../wuyefeip/Create.aspx?Index=<%=fangyuan.Index %>'"/>
                            </asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
		<table class="TableData">
			<colgroup>
				<col width="50" />
				<col width="100" />
				<col width="120" />
				<col width="70" />
				<col width="70" />
				<col width="70" />
				<col width="70" />
				<col width="70" />
				<col width="70" />
				<col width="70" />
				<col width="100px" />
			</colgroup>
			<tr class="TableRow">
				<td>索引</td>
				<td>交款人</td>
                <td>收费时段</td>
                <td>物业费</td>
				<td>取暖费</td>
				<td>二次供水</td>
				<td>电梯费</td>
                <td>总计</td>
                <td>收款日期</td>
				<td>备注</td>
				<td>操作</td>
			</tr>
			<asp:Repeater ID="RepGrid" runat="server" EnableViewState="true">
			<ItemTemplate>
			<tr class="TableRow">
				<td><%#Eval("index")%></td>
				<td><%#Eval("xingming")%></td>
                <td><%#Eval("startdate","{0:yyyy年MM月dd日}") %>至<%#Eval("enddate","{0:yyyy年MM月dd日}") %></td>
                <td><%#Eval("wuyefei","{0:N0}") %></td>
				<td><%#Eval("qunuanfei", "{0:N0}")%></td>
				<td><%#Eval("gongshuifei", "{0:N0}")%></td>
				<td><%#Eval("diantifei","{0:N0}")%></td>
				<td><%#Eval("zongji","{0:N0}")%></td>
				<td><%#Eval("date","{0:yyyy-MM-dd}")%></td>
                <td><%#Eval("beizhu") %></td>
				<td align="center">
					<input class="BtnModify" type="button" onclick="location='../wuyefeip/Modify.aspx?Index=<%#Eval("index")%>'"/>
					<input class="BtnDelete" type="button" onclick="location='../wuyefeip/Delete.aspx?Index=<%#Eval("index")%>'"/>
				</td>
			</tr>
			</ItemTemplate>
			</asp:Repeater>
		</table>
                </div>
            <div id="ScorllFooter"></div>
        </div>
        
        <div id="Footer">
            <div class="ButtonArea">
                <asp:Button ID="BtnDingfang" runat="server" Text="定房" CssClass="Button" onclick="BtnDingfang_Click" />
                <asp:Button ID="BtnTuifang" runat="server" Text="退房" CssClass="Button" 
                    onclick="BtnTuifang_Click"/>
                <asp:Button ID="BtnSave" runat="server" Text="保存" CssClass="Button"  onclick="BtnSave_Click" />
                <input class="Button" onclick="location='Default.aspx'" type="button" value="取消" />
            </div>
        </div>
</asp:Content>
